﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cmdLineParserModule;

namespace cmdLineParserModule
{
    /// <summary>
    /// Option class for marking bool attribute, usable with 'string' only
    /// </summary>
    public class optionStringAttribute : optionParametrizedAttribute
    {
        /// <summary>
        /// Type of property marked with this class
        /// </summary>
        /// <returns>Type only accepted by parser</returns>
        internal override Type typeAccepted()
        {
            return typeof(string);
        }

        /// <summary>
        /// Creates string value from string value, therefore this is identity.
        /// </summary>
        /// <param name="stringValue">String value</param>
        /// <returns>String value from stringValue :)</returns>
        internal override object createValueFromString(string stringValue)
        {
            return stringValue;
        }
    }
}
